<?php 

class RecipeMain extends AppModel{
	
	public $name = 'RecipeMain';
	public $hasAndBelongsToMany = array ('Recipe' => array (	'className' => 'Recipe',
																'joinTable' => 'recipes_recipe_mains',
																'foreignKey' => 'main_id',
																'associationForeignKey' => 'recipe_id'
															)
										);

	public $validate = array(
		'title' => array(
			'required' => array(
				'rule' => 'notEmpty',
				'message' => 'The title is required.',
				),
			),

		);
}


?>